package com.lry.sso.gateway.config;

import io.lettuce.core.dynamic.annotation.Value;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 李瑞益
 * @date 2020-02-17 17:15
 */
@Data
@Component
@ConfigurationProperties(prefix = "sso.auth")
public class AuthConfigProperties {

    private TokenFilter tokenFilter;

    private RedisFilter redisFilter;

    public class TokenFilter{
        private boolean enable = true;

        public boolean isEnable() {
            return enable;
        }

        public void setEnable(boolean enable) {
            this.enable = enable;
        }
    }

    public class RedisFilter{
        private boolean enable = false;

        public boolean isEnable() {
            return enable;
        }

        public void setEnable(boolean enable) {
            this.enable = enable;
        }
    }
}
